/*
 * MyUtil.h
 *
 *  Created on: Mar 31, 2011
 *      Author: ToanNhan
 */

#ifndef MYUTIL_H_
#define MYUTIL_H_

#include <FBase.h>
#include <FText.h>
#include <string>
#include <FSystem.h>
#include <FLocales.h>
#include <FUi.h>
#include <FApp.h>
using namespace Osp::Base;
using namespace Osp::Text;
using namespace std;
using namespace Osp::Locales;
using namespace Osp::App;

class MyUtil {
public:
	MyUtil();
	virtual ~MyUtil();

	static char* ConvertStringToCharN(String source);
	static String urlencode_char2hex(char dec);
	static String urlencode(Osp::Base::String instr);
	static char* ConvertByteBufferToCharN(ByteBuffer *&buffer);
	static Osp::Base::String ConvertstringToString(std::string src);
	static result StringToUTF8String(String source, String &destination);

	static String GetSystemLanguage();
};

#endif /* MYUTIL_H_ */
